package com.spring_mvc.entity;

public class User {
    private String username;
    private String password;
    private Address address;

    public User(String username, String password, Address address){
        this.username = username;
        this.password = password;
        this.address = address;
    }
    public User(){}

    //重写toString()方法
    @Override
    public String toString(){
        return "User[username=" + username + ", password=" + password + ", address=" + address + "]";
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }
}
